package com.gem.service;

import com.gem.entity.CaseMedicine;

import java.util.List;
//病例药品
public interface CasemedicineService {
    //根据id查询
    CaseMedicine selectById(Integer cmid);
    //根据病例id查询
    List<CaseMedicine> selectByCaid(int caid);
    //根据药品id查询
    List<CaseMedicine> selectByMid(int mid);
    //查询全部
    List<CaseMedicine> selectAll();
    //添加新药
    boolean insert(CaseMedicine casemedicine);
    //添加已有的药品,根据药品id增加数量
    boolean updateMenum(int mid,int menum);
    //删除
    boolean deleteById(Integer cmid);

}